package com.yft.service.pos_information;

import com.yft.dao.pos_information.PosBusinessTypeDao;
import com.yft.entity.base.Order;
import com.yft.entity.base.Pager;
import com.yft.entity.posinformation.PosBusinessType;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("posBusinessTypeService")
public class PosBusinessTypeServiceImp implements PosBusinessTypeService {
	Logger log = Logger.getLogger(PosBusinessTypeServiceImp.class);
	
	@Autowired(required = true)
	private PosBusinessTypeDao posBusinessTypeDao;

    @Override
    public Object addPosBusinessType(PosBusinessType posBusinessType) {
        return posBusinessTypeDao.addPosBusinessType(posBusinessType);
    }

    @Override
    public PosBusinessType getPosBusinessType(Integer posBusinessTypePk) {
        return posBusinessTypeDao.getPosBusinessType(posBusinessTypePk);
    }

    @Override
    public boolean updateValues(PosBusinessType condition, String cumstomStr) {
        return posBusinessTypeDao.updateValues(condition,cumstomStr);
    }

    @Override
    public List<PosBusinessType> getPosBusinessTypeList(PosBusinessType condition, Order order, Pager pager) {
        return posBusinessTypeDao.getPosBusinessTypeList(condition,order,pager);
    }
}
